<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{$productTitle}-出行日期</title>
	<link rel="stylesheet" href="__PUBLIC__/css/style.css">
	<!-- <link rel="stylesheet" href="__PUBLIC__/css/font.css" /> -->
	<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
	<!-- // <script type="text/javascript" src="__PUBLIC__/js/common.js"></script> -->
	<script type="text/javascript" src="/Public/js/jquery.form.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/plugin/layer/layer.js"></script>

</head>
<body style="min-width: 100%;">
<!-- //多选日历插件 -->
<link rel="stylesheet" href="/Public/css/jqueryui/jquery.ui.all.css">
<script src="/Public/js/jquery-ui-1.8.10.custom.min.js"></script>
<script src="/Public/js/jquery.ui.datepicker.my.js"></script>
<script type="text/javascript">
$(function(){
	$('#button-submit').click(function () {
		$('#form').ajaxSubmit({
			dataType:  'json',
			success:function (data) {
				if(data.valid == true)
				{
					layer.msg(data.state);
					window.parent.document.location.reload();
				}
				else
				{
					layer.msg(data.state);
				}
			}
		})
	})
});


</script>

<div class="form">
	<form method='post' id="form" action="{:U(MODULE_NAME. '/Webproduct/departureDatePost',array('productID'=>$productID))}">
		<dl>
			<dt> 出发地：</dt>
			<dd>
				<select name="libraryID">
					<foreach name="departureArr" item="departureArr">
					<option value="{$departureArr.libraryID}">{$departureArr.departureName}</option>
					</foreach>
				</select>
			</dd>
		</dl>

		<dl>
			<dt> 开始日期：</dt>
			<dd>
				<input id="sel_time_begin" name="sel_time_begin" class="input_time" value="yyyy-mm-dd">&nbsp;～&nbsp;<input id="sel_time_end" name="sel_time_end" class="input_time" value="yyyy-mm-dd">
				<input id="timelist2" type="hidden" name="timelist2">
				<input id="Fbegin_date" type="hidden" name="Fbegin_date">
				<input id="Fend_date" type="hidden" name="Fend_date">
				<input id="add_date_re" type="hidden" name="add_date_re" value="1">
				&nbsp;
				<input id="sel_dates_btn" value="确定" type="button" name="sel_dates_btn">
			</dd>
		</dl>
		<dl>
			<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</dt>
			<dd>
				<span style="margin-right: 40px;">已选定日期</span>
				<span id="datenum" style="margin-right: 50px;">总天数：
				<font color="red"> 0 </font>天</span>
				<input id='datepicker_input' type='text' style=' width:1px; height:1px; border:0px;'>
				<span  id="datepicker"></span>
				<div style="display:none;">
					<textarea name="timelist" id="timelist" readonly="readonly">暂无选定的日期</textarea>
				</div>
			</dd>
		</dl>
		<dl>
			<dt> 成人价格：</dt>
			<dd>
				<input type="text" name="adultPrice" class="inp_one" />
			</dd>
		</dl>
		<dl>
			<dt> 儿童价格：</dt>
			<dd>
				<input type="text" name="childPrice" class="inp_one" />
			</dd>
		</dl>
		<dl>
			<dt> 线路余位：</dt>
			<dd>
				<input type="text" name="seat" class="inp_one" />
			</dd>
		</dl>
		<dl>
			<dt> </dt>
			<dd>
				<input type="button" id="button-submit" class="button-green" value="添 加">
			</dd>
		</dl>
	</form>
</div>
</body>
</html>